<layout name="layout" /> 

<div class="row">
	<div class="col-md-12">
		<foreach name="result" item="v">
		<form class="form-horizontal" role="form" action="__CONTROLLER__/update" method="post">
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="name"> 分类名 </label>

				<div class="col-sm-9">
					<input type="text" value="{$v.name}" name="name" id="name" placeholder="分类标题" class="col-xs-10 col-sm-5">
				</div>
			</div>
			
			<div class="space-4"></div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="slug"> 分类别名 </label>

				<div class="col-sm-9">
					<input type="text" value="{$v.slug}"  name="slug" id="slug" placeholder="建议输入英文或数字" class="form-control">
				</div>
			</div>

			<div class="space-4"></div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="pid"> 父级 </label>
				<div class="col-sm-9">
					<select name="pid" id="pid" class="postform">
						<option value="0">无</option>
						<foreach name="cate" item="c">
							<option value="{$c.id}"  <if condition="$v['pid'] eq $c['id']">selected="selected" </if> >{$c.html}{$c.name}</option>
						</foreach>				
					</select>
				</div>
			</div>
			<div class="space-4"></div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="keywords"> 关键词 </label>
				<div class="col-sm-9">
					<input type="text" value="{$v.keywords}" name="keywords" id="keywords" placeholder="多个关键词用','隔开" class="form-control">
				</div>
			</div>

			<div class="space-4"></div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="description"> 描述信息 </label>
				<div class="col-sm-9">
					<textarea id="description"  name="description" class="autosize-transition form-control" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 52px;">{$v.description}</textarea>
				</div>
			</div>
			<input type="hidden" name="id" value="{$v.id}" >
			<div class="space-4"></div>

			<div class="clearfix form-actions">
				
					<div class="row">
						<div class="col-md-6 col-xs-6 col-sm-6" style="text-align:center;">
							<button class="btn btn-info" type="submit">
								<i class="ace-icon fa fa-check bigger-110"></i>
								提交
							</button>												
						</div>
						<div class="col-md-6 col-xs-6 col-sm-6" style="text-align:center;">
							
							<button class="btn" type="reset">
								<i class="ace-icon fa fa-undo bigger-110"></i>
								重置
							</button>
						</div>
					</div>
			</div>
		</form>	
		</foreach>	
	</div>
</div>